package com.io;

import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;

public class Test_2 {
    public static void main(String[] args) throws IOException {
        read();
    }
    public static void read() throws IOException {
        String pathname="D:\\javacode\\javacode\\J2024_11_17\\a.txt";
        BufferedReader bufferedReader = new BufferedReader(new FileReader(pathname));
        String line;
        while((line=bufferedReader.readLine())!=null){
            System.out.println(line);
        }
        bufferedReader.close();
    }
}


